{* öä&uuml; *}
<div style="padding:10px;">
	<h2>Templates</h2>
	<p>
		...
	</p>
	
	<div style="width:400px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #aaa;border-right:1px solid #bbb" >
		<table class="tableList" cellspacing="1" cellpadding="2" >
			<thead>
				<tr>
					<th>Name</th>
					<th>Pfad</th>
					<th>&nbsp;</th>
					<th>&nbsp;</th>
				</tr>
			</thead>
			<tbody>
		{foreach from=$templates item="tpl"}
				<tr>
					<td>{$tpl.tpl_name}</td>
					<td>{$tpl.tpl_dir}{$tpl.tpl_file}</td>
					<td><a href="javascript:void(0);" onclick="{strip}{literal}
					  xajax.request(
					  {
					  	ccdsfun:'ClassEditorTemplatesEdit',
					  	ccdsclass:'ccdsClassEditor'
					  }
					  ,
					  {
						  parameters:[{
						  {/literal}
								project_id:{$project.project_id},
								tpl_id:{$tpl.tpl_id}
							{literal}
							}]
					  }
					  )
					  
					  {/literal}{/strip}" title="bearbeiten"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/pencil.png" border="0" alt="bearbeiten" /></a>
					</td>	  
					<td><a href="javascript:void(0);" onclick="{strip}{literal}foo=this;
	$('<div />').xWindow('confirm',{title:'logout',content:'Wollen Sie das Template wirklich l&ouml;schen?'}, function(){
	
		xajax.request(
		{
			ccdsfun:'ClassEditorTemplatesDelete',
			ccdsclass:'ccdsClassEditor'
		},
			{
				parameters:[{{/literal}tpl_id:{$tpl.tpl_id},project_id:{$project.project_id}{literal}
				}]
			}
		);
	
	});
	{/literal}{/strip}" title="Zeile löschen">
								<img src="{$CMS_LIBRARY_WEB}famfamfam/icons/cross.png" border="0" alt="Feld löschen" /></a>
					</td>	  
			  </tr>
			{/foreach}
			</tbody>
		</table>
	</div>
	<br />
	
	
	<h2>Templates hinzuf&uuml;gen</h2>
	<p>...</p>

	<form id="TemplatesaddForm_{$project.project_id}" action="" onsubmit="return false;">
	<input type="hidden" name="project_id" value="{$project.project_id}" />
	
	<input type="button" onclick="{strip}{literal}
	CMS.FileManager.open(
	{{/literal}
		root:'extensions',project_id:'{$project.project_id}',
		multiple:true,
		returnfield: {literal}{{/literal}
			file:xajax.$('project_{$project.project_id}_tpl_file'),
			dir:xajax.$('project_{$project.project_id}_tpl_dir'),
			name:xajax.$('project_{$project.project_id}_tpl_file'),
			type:'tpl',
			container:xajax.$('project_{$project.project_id}_tpl_append')
		{literal}}{/literal},
		callback:{literal}{{/literal}
			ccdsfun:'ClassEditorReturnTemplates',
			ccdsclass:'ccdsClassEditor'
	{literal}}});
	{/literal}{/strip}" value="neues Template hinzuf&uuml;gen" />
	<br /> 
	<br />

	<div id="project_{$project.project_id}_tpl_append"></div>
	<br />
	<input type="button" value="templates speichern" onclick="{strip}{literal}
	xajax.request(
	{
		ccdsfun:'ClassEditorTemplatesSave',
		ccdsclass:'ccdsClassEditor'
	},
		{{/literal}
			parameters:[xajax.getFormValues('TemplatesaddForm_{$project.project_id}')]
		{literal}	}
	);
	{/literal}{/strip}" />
	</form>


</div>